Scroll to navigation

GLUTBITMAPHEIGHT(3) Library Functions Manual (local) GLUTBITMAPHEIGHT(3)

NAME

glutBitmapHeightReturn the height of a given font, in pixels.

LIBRARY

OpenGLUT - bitmapfont

SYNOPSIS

#include <openglut.h>

int
glutBitmapHeight(void *font);

PARAMETERS


font

A bitmapped font identifier.

DESCRIPTION

Return the line-to-line vertical spacing (in pixels) between lines of a bitmapped


font.

Returns 0 if


font

is invalid.

CAVEATS

Does


not

report the height used by individual characters. This may limit its usefulness. (Compare with other font-metric queries.)

TODO

We have discussed adding a "font descender" query. We should go ahead and do it.

SEE ALSO

glutBitmapCharacter(3) glutBitmapString(3) glutBitmapWidth(3) glutBitmapLength(3) glutStrokeHeight(3)